package com.lysj.bhp.user.base;


import com.lysj.bhp.investment.repository.DividendRepository;
import com.lysj.bhp.investment.repository.RewardRepository;
import com.lysj.bhp.system.service.IpRecordService;
import com.lysj.bhp.user.repository.*;
import com.lysj.bhp.user.service.BatchPlayCoinService;
import com.lysj.bhp.user.domain.BatchPlayCoin;
import com.lysj.bhp.user.repository.*;
import com.lysj.bhp.user.service.BatchPlayCoinService;
import com.lysj.bhp.user.service.BhpcService;
import com.lysj.bhp.wallet.repository.BhpcWalletRepository;
import com.lysj.bhp.wallet.repository.BitcoinAddressRepository;
import com.lysj.bhp.wallet.repository.BitcoinWalletRepository;
import com.lysj.bhp.wallet.repository.EthereumWalletRepository;
import com.lysj.bhp.system.base.RootContent;

import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * 基础的容器,此容器包含所有Service和Repository的对象(单例)
 */
@Component
public class UserContent extends RootContent {
    protected static final long LOGIN_EXPIRES_USER = 1000 * 60 * 60 * 1;// 单位:ms/登录过期时间(用户)[1小时]
    protected static final long FORGET_EXPIRES_USER = 1000 * 60 * 60 * 24 * 3;// 单位:ms/登录过期时间(用户)[3天]
    protected static final long REQUEST_EXPIRES_USER = 1000 *5;// 单位:ms/防止频繁请求(用户) 5秒
    protected static final int PLAY_COIN_NO = 1;
    protected static final int PLAY_COIN_OK = 2;

    @Resource
    public UserRepository userRepository;
    @Resource
    public EthereumWalletRepository ethereumWalletRepository;
    @Resource
    public BitcoinWalletRepository bitcoinWalletRepository;
    @Resource
    public BhpcWalletRepository bhpcWalletRepository;
    @Resource
    public RewardRepository rewardRepository;
    @Resource
    public BhpcEditLogRepository bhpcEditLogRepository;
    @Resource
    public UserEditLogRepository userEditLogRepository;
    @Resource
    public WalletEditLogRepository walletEditLogRepository;

    @Resource

    public BatchPlayCoinService batchPlayCoinService;

    public BhpcService bhpcService;
    @Resource
    public BatchPlayCoinRecordRepository batchPlayCoinRecordRepository;



}
